package com.lee.controller;

import com.lee.bean.Class;
import com.lee.service.ClassService;
import com.lee.util.AjaxResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * Created by dllo on 18/4/17.
 */
@Controller
public class ClassesmController {

    @Resource
    ClassService classService;

    @RequestMapping(value = "/listclass")
    public String listclass(){
        return "classesm/listClass";
    }

    @ResponseBody
    @RequestMapping(value = "/sctallclass")
    public AjaxResult sac(){
        return classService.selectAll();
    }
}
